<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html>
<html>
<head>
    <title>自适应测评系统</title>
    <meta charset="utf-8"/>
    <script  src='../../js/core.js'></script>
    <script  src='../../js/jquery-1.4.2.js'></script>
    <link type="text/css" rel='stylesheet' href="../../css/common.css"/>
    <link type="text/css" rel='stylesheet' href="../../css/houtai.css"/>
</head>
           <%
           /***********************************************************************************/
           /*
           *验证权限
           *author 胡瑾
           *data 2011-12-08
           */
			String flag = (String)session.getAttribute("flag");
			String userId = (String)session.getAttribute("userId");
			int adminId = Integer.parseInt(userId);
						
			if (flag != "admin"|| flag == null )
			{
				%>
      <script language="javascript">
				     alert("您没有管理员权限,请重新登录"); window.location.href="../../index.jsp";
				    </script>
      <%
				
			}else{
				Admin admin = new Admin();
				AdminControl ac = new AdminControl();
				admin = ac.GetAdmin(adminId);
				out.print("<p>"+admin.getName()+"   欢迎您</p>");
				
			}
			/*********************************************************************************/
           %>
		 <form method="post" name="form" action="problem_addchuli.jsp">
        <table class='init'>
          <tr>
            <th><div align="center">章</div></th>
            <td width="176"><div align="center">
                <input type="text" name="chapter"/>
              </div></td>
            <th width="130"><div align="center">节</div></th>
            <td width="176"><div align="center">
                <input type="text" name="section"/>
              </div></td>
          </tr>
          <tr>
            <th><div align="center">试题区分度(a)</div></th>
            <td><div align="center">
                <input type="text" name="aa"/>
              </div></td>
            <th><div align="center">试题难度(b)</div></th>
            <td><div align="center">
                <input type="text" name="bb"/>
              </div></td>
          </tr>
          <tr>
            <th><div align="center">猜测系数(c)</div></th>
            <td><div align="center">
                <input type="text" name="cc"/>
              </div></td>
            <th><div align="center">适用的能力值</div></th>
            <td><div align="center">
                <input type="text" name="abilityRange"/>
              </div></td>
          </tr>
          <tr>
            <th width="143"><div align="center">题干内容</div></th>
            <td colspan="3" align="center"><fck:editor id="testfck" basePath="/SAT/fckeditor/" height="150"
                width="602" skinPath="/SAT/fckeditor/editor/skins/office2003/"
                toolbarSet="Basic"
                imageBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
                linkBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
                flashBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
                imageUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
                linkUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
                flashUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </fck:editor>            </td>
          </tr>
          <tr>
            <th><div align="center">选项A</div></th>
            <td><fck:editor id="A" basePath="/SAT/fckeditor/" height="80"
                width="250" skinPath="/SAT/fckeditor/editor/skins/office2003/"
                toolbarSet="Basic"
                imageBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
                linkBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
                flashBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
                imageUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
                linkUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
                flashUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </fck:editor>            </td>
            <th><div align="center">选项B</div></th>
            <td><fck:editor id="B" basePath="/SAT/fckeditor/" height="80"
                width="250" skinPath="/SAT/fckeditor/editor/skins/office2003/"
                toolbarSet="Basic"
                imageBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
                linkBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
                flashBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
                imageUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
                linkUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
                flashUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </fck:editor>            </td>
          </tr>
          <tr>
            <th><div align="center">选项C</div></th>
            <td><fck:editor id="C" basePath="/SAT/fckeditor/" height="80"
                width="250" skinPath="/SAT/fckeditor/editor/skins/office2003/"
                toolbarSet="Basic"
                imageBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
                linkBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
                flashBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
                imageUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
                linkUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
                flashUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </fck:editor>            </td>
            <th><div align="center">选项D</div></th>
            <td><fck:editor id="D" basePath="/SAT/fckeditor/" height="80"
                width="250" skinPath="/SAT/fckeditor/editor/skins/office2003/"
                toolbarSet="Basic"
                imageBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=connectors/jsp/connector"
                linkBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Connector=connectors/jsp/connector"
                flashBrowserURL="/SAT/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=connectors/jsp/connector"
                imageUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Image"
                linkUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=File"
                flashUploadURL="/SAT/fckeditor/editor/filemanager/upload/simpleuploader?Type=Flash"> </fck:editor>            </td>
          </tr>
          <tr>
            <td><div align="center"></div></td>
            <td><div align="center"></div></td>
            <td><div align="center"></div></td>
            <td><div align="center"></div></td>
          </tr>
          <tr>
            <th><div align="center">正确选项</div></th>
            <td><div align="center">
                <input type="text" name="correct"/>
              </div></td>
            <th><div align="center">分数</div></th>
            <td><div align="center">
                <input type="text" name="mark"/>
              </div></td>
          </tr>
          <tr>
            <th><div align="center">是否包含图片</div></th>
            <td><div align="center">
                <input type="text" name="flag_pic"/>
              </div></td>
            <th><div align="center">是否包含视频或声音</div></th>
            <td><div align="center">
                <input type="text" name="flag_med"/>
              </div></td>
          </tr>
          <tr>
            <th><div align="center">锁题标识</div></th>
            <td><div align="center">
                <input type="text" name="flag"/>
              </div></td>
            <th><div align="center">曝光控制参数</div></th>
            <td><div align="center">
                <input type="text" name="alt1"/>
              </div></td>
          </tr>
          <tr>
            <th><div align="center">出题人</div></th>
            <td><div align="center">
                <input type="text" name="author"/>
              </div></td>
            <th><div align="center">项目创建时间</div></th>
            <td><div align="center">
                <input type="text" name="setTime"  onClick="WdatePicker()"/>
              </div></td>
          </tr>
        </table>
        <div align="center">
          <input name="submit"  type="image" src="links/tj.jpg" value="确定">
    
          </div>
		 </form>
        </div>
</body>
</html>
